import request from '@/utils/request'

// 查询报废日志列表
export function listScrapLog(query) {
  return request({
    url: '/assets/scrapLog/list',
    method: 'get',
    params: query
  })
}

// 查询报废日志详细
export function getScrapLog(logId) {
  return request({
    url: '/assets/scrapLog/' + logId,
    method: 'get'
  })
}

// 新增报废日志
export function addScrapLog(data) {
  return request({
    url: '/assets/scrapLog',
    method: 'post',
    data: data
  })
}

// 修改报废日志
export function updateScrapLog(data) {
  return request({
    url: '/assets/scrapLog',
    method: 'put',
    data: data
  })
}

// 删除报废日志
export function delScrapLog(logId) {
  return request({
    url: '/assets/scrapLog/' + logId,
    method: 'delete'
  })
}
